package org.setaria.container
{
	
	import mx.core.INavigatorContent;
	import mx.modules.IModule;
	
	import spark.components.BorderContainer;
	
	//这句话比较关键，少了就要出问题
	[Frame(factoryClass="mx.core.FlexModuleFactory")]
	
	public class SetariaModule extends BorderContainer implements INavigatorContent,IModule
	{
		/**
		 * 用来保存加载module时传递的一些参数
		 * */
		public var data:Object;
		/**
		 * 标题信息
		 * */
		public var title:String;
		
		public function SetariaModule()
		{
			super();
		}
		
		
		
		
		//////////////////////////////////
		/// 实现INavigatorContent接口。适用于导航容器 比如ViewStack
		//////////////////////////////////
		
		[Bindable("labelChanged")]
		[Inspectable(category="General", defaultValue="")]
		public function get label():String
		{
			return title;
		}
		
		private var _icon:Class = null;
		
		[Bindable("iconChanged")]
		[Inspectable(category="General", defaultValue="", format="EmbeddedFile")]
		public function get icon():Class
		{
			return _icon;
		}
		public function set icon(iconClass:Class):void
		{
			_icon = iconClass;
		}
	}
}